package com.gcb.mapper;

import com.gcb.domain.dto.OrderProjectQueryDTO;
import com.gcb.domain.entity.OrderProject;
import com.gcb.domain.vo.OrderProjectVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface OrderProjectMapper {


    /**
     * 新增
     * @param orderProject
     */
    void insert(OrderProject orderProject);

    /**
     * 修改
     * @param orderProject
     */
    void update(OrderProject orderProject);

    /**
     * 列表
     * @param queryDTO
     * @return
     */
    List<OrderProjectVO> list(OrderProjectQueryDTO queryDTO);

    OrderProjectVO getById(Long id);

    void batchUpdateState(@Param("ids") List<Long> ids,
                          @Param("state") Integer state,
                          @Param("updateBy") Long updateBy);

}
